//
//  MainNavigatorMap.swift
//  JonSnowCore
//
//  Created by eme on 2017/3/16.
//  Copyright © 2017年 CocoaPods. All rights reserved.
//

import UIKit
import JonSnowCore
import UtilCore
import URLNavigator
import AryaCore

///登陆注册模块的路由
struct MainNavigatorMap {
    
    static func initialize() {
        Navigator.scheme = "mk"
        UtilCoreNavigatorMap.initialize()
        LoginCoreNavigatorMap.initialize()
        AryaCoreRoute.initialize()
        /// 引导界面结束后跳转到登陆界面
        Navigator.map("/tologin"){url, values in
            let appdelegate = UIApplication.shared.delegate as! AppDelegate
            appdelegate.toLoginVc()
            
            return false
        }
        /// 登陆成功跳转到 首页
        Navigator.map("/loginsuccess"){url, values in
            let appdelegate = UIApplication.shared.delegate as! AppDelegate
            appdelegate.setTabBarVc()
            return false
        }
        
        
        
    }
}

